<include file="Public/header" />
<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>分类处理</h5>
                        <div class="ibox-tools">
                    <a class="collapse-link" href="{:U('Userscategory/index')}" >
                        <i class="fa fa-chevron-up"></i>
                        结构分类列表
                    </a>
                    <a class="collapse-link" href="{:U('Userscategory/edit')}" >
                        <i class="fa fa-chevron-up"></i>
                        添加结构分类
                    </a>
                    
                </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-6 b-r">
                               
                                <form role="form" method="post" action="#" class ="cmzForm">

                                    <div class="form-group">
                                        <label>上级：</label>
                                       <select name="parentid">
											<option value="0">作为一级结构</option>
                                            {$cats}
										</select>
                                    </div>
                                    <div class="form-group">
                                        <label>名称：</label>
                                        <input type="text" class="" name="name" value="{$Ucategory.name}" placeholder="">
                                    </div>
                                    <div class="form-group">
                                        <label>备注：</label>
                                        <textarea name="description" rows="5" cols="57">{$Ucategory.description}</textarea>
                                    </div>
                                   <!--  <div class="form-group">
                                        <label>类型:</label>
                                         <select name="model">

											<foreach name="models" item="vo">
												<php>$selected=$Ucategory['model']==$vo['id']?"selected":""</php>
												<option value="{$vo.id}" {$selected}>{$vo.name}</option>
											</foreach>
										</select>
                                    </div> -->
                                   
                                
                                    <div>
                                        <a href="javascript:;" table="users_category" where="<?php if(isset($_GET['id'])&&!empty($_GET['id'])){echo "id-".$_GET['id'];} ?>" returnurl="/Admin/Userscategory/index"  class="btn btn-sm btn-primary pull-right m-t-n-xs changepas cmzEdit"><strong>提交</strong>
                                        </a>
                                      
                                    </div>
                                </form>
                            </div>
                            <div class="col-sm-6">
                          
                                <p class="text-center">
                                    <a href="javascript:;" class=""><i class="fa fa-sign-in big-icon"></i></a>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
      
        </div>

 <include name="Public/footer" />
